{{extend 'layout.html'}}


<script type="text/javascript">
$(document).ready(function(){
    jQuery('div.reports,div#_reports').slideToggle();
    jQuery('div.setup,table#_setup').slideToggle();
 });

</script>

<div>
{{=button('On-air Screen','frame_wrapper_onair.html')}}
{{=button('Pledge Entry','frame_wrapper_pledge_entry.html')}}
<button onclick="jQuery('div.reports,div#_reports').slideToggle();">Reports</button>
<button onclick="jQuery('div.setup,div#_setup').slideToggle();">Setup</button>
</div>

<div class="reports">
<ul>
<li><a href="{{=URL(r=request,f='report_segments_by_pledgedrive',args=session.pledgedrive['id'])}}">Segment Report</a></li>
<li><a href="{{=URL(r=request,f='report_single_segment',args=session.pledgedrive['id'])}}">Single Segment Report</a></li>
<li><a href="{{=URL(r=request,f='report_pledge_level',args=session.pledgedrive['id'])}}">Pledge Levels Report</a></li>
<li><a href="{{=URL(r=request,f='report_day_total_summary',args=session.pledgedrive['id'])}}">Day Totals Report</a></li>
<li><a href="{{=URL(r=request,f='report_pledgedrive_totals_detailed',args=session.pledgedrive['id'])}}">Drive Totals (detailed)</a></li>
<li><a href="{{=URL(r=request,f='report_pledgedrive_totals',args=session.pledgedrive['id'])}}">Drive Totals (summary)</a></li>
</ul>
</div>

<div class="setup">
    <a href="{{=URL(r=request,f='list_organizations')}}">List Organizations</a> <br />
    <a href="{{=URL(r=request,f='view_organization',args=session.organization['id'])}}">View Currently Selected Organization</a> |
    <a href="{{=URL(r=request,f='edit_organization',args=session.organization['id'])}}">Edit Selected Organization</a> |<br />
    <a href="{{=URL(r=request,f='list_programs_by_organization',args=session.organization['id'])}}">List Programs</a> |
    <a href="{{=URL(r=request,f='create_program',args=session.organization['id'])}}">Add a New Program</a> |
    <a href="{{=URL(r=request,f='create_program_import',args=session.organization['id'])}}">Import Program List</a> |<br />
    <a href="{{=URL(r=request,f='list_persons_by_organization',args=session.organization['id'])}}">List Persons</a> |
    <a href="{{=URL(r=request,f='create_person',args=session.organization['id'])}}">Add a New Person</a> |<br />
    <a href="{{=URL(r=request,f='list_pledgedrives_by_organization',args=session.organization['id'])}}">List Pledge Drives</a> |
    <a href="{{=URL(r=request,f='create_pledgedrive',args=session.organization['id'])}}">Add a New Pledge Drive</a> <br />
    <a href="{{=URL(r=request,f='view_pledgedrive',args=session.pledgedrive['id'])}}">View Currently Selected Pledge Drive</a><br />
    <a href="{{=URL(r=request,f='list_challenges_by_pledgedrive',args=session.pledgedrive['id'])}}">List Challenges for Current Pledge Drive</a> |
    <a href="{{=URL(r=request,f='create_challenge',args=session.pledgedrive['id'])}}">Add Challenge to Current Pledge Drive</a> <br />
    <a href="{{=URL(r=request,f='list_segments_by_pledgedrive',args=session.pledgedrive['id'])}}">List Segments for Current Pledge Drive</a> |    <a href="{{=URL(r=request,f='create_segment',args=session.pledgedrive['id'])}}">Add Segment to Current Pledge Drive</a> <br />
    <a href="{{=URL(r=request,f='list_pledges_by_pledgedrive',args=session.pledgedrive['id'])}}">List Pledges for Current Pledge Drive</a> <br />
    <a href="{{=URL(r=request,f='list_pledges_by_segment',args=session.segment['id'])}}">List Pledges for Current Segment</a> |
    <a href="{{=URL(r=request,f='create_pledge',args=session.segment['id'])}}">Add Pledge to Current Segment</a><br />
    <a href="{{=URL(r=request,f='post_list',args=session.organization['id'])}}">List Producer Messages</a> | 
    <a href="{{=URL(r=request,f='post_add',args=session.organization['id'])}}">Add Message</a><br />
<p>
{{=button('Quick Setup: Segments','quick_setup_segment')}}
</p>
</div>

<div>
Selected Organization: {{=session.organization['name']}}
<div>
{{pass}}{{=button('Select a new organization','session_organization_id_form')}}
</div>
</div>

<div>
Selected Pledge Drive: {{=session.pledgedrive['title']}}
<div>
{{pass}}{{=button('Select a new pledgedrive','session_pledgedrive_id_form')}}
</div>
</div>

<div>
Selected Segment: {{=session.segment['title']}}
<div>
{{pass}}{{=button('Select a new segment','session_segment_id_form')}}
</div>
</div>


<!--
{{try:}}{{=H2(message)}}{{except:}}{{=BEAUTIFY(response._vars)}}{{pass}}
-->
